package com.ruoyi.swimming.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 课程对象 course
 * 
 * @author ruoyi
 * @date 2021-07-17
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String courseName;

    /** 课程主教练id */
    @Excel(name = "课程主教练id")
    private Long mainCoachId;

    /**课程教练名称*/
    private String coachName;

    /** 泳馆id */
    @Excel(name = "泳馆id")
    private Long natatoriumId;

    /** 泳馆名称 */
    private String natatoriumName;

    /** 课程价格 */
    @Excel(name = "课程价格")
    private BigDecimal price;

    /** 课程详情 */
    @Excel(name = "课程详情")
    private String desc;

    /** 课程简介 */
    @Excel(name = "课程简介")
    private String introduction;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @TableLogic
    private Integer isDel;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCoachName() {
        return coachName;
    }

    public void setCoachName(String coachName) {
        this.coachName = coachName;
    }

    public String getNatatoriumName() {
        return natatoriumName;
    }

    public void setNatatoriumName(String natatoriumName) {
        this.natatoriumName = natatoriumName;
    }

    public String getCourseName()
    {
        return courseName;
    }
    public void setMainCoachId(Long mainCoachId) 
    {
        this.mainCoachId = mainCoachId;
    }

    public Long getMainCoachId() 
    {
        return mainCoachId;
    }
    public void setNatatoriumId(Long natatoriumId) 
    {
        this.natatoriumId = natatoriumId;
    }

    public Long getNatatoriumId() 
    {
        return natatoriumId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }
    public void setIntroduction(String introduction) 
    {
        this.introduction = introduction;
    }

    public String getIntroduction() 
    {
        return introduction;
    }
    public void setIsDel(Integer isDel) 
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("courseName", getCourseName())
            .append("mainCoachId", getMainCoachId())
                .append("coachName", getCoachName())
            .append("natatoriumId", getNatatoriumId())
                .append("natatoriumName", getNatatoriumName())
            .append("price", getPrice())
            .append("desc", getDesc())
            .append("introduction", getIntroduction())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDel", getIsDel())
            .toString();
    }
}
